package com.jin.service;

import com.jin.pojo.Books;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

public interface BookService {
    //增加书
    int addBooks(Books books);

    //删除一本书
    int deleteBooksById(int id);

    //修改一本书
    int updateBook(Books books);

    //查找一本书
    Books selectBooksById(int id);

    //查找所有书
    List<Books> selectAllBooks();


    //通过书名查找书
    Books selectBooksByName(String bookName);
}
